#ifndef ADMIN_H
#define ADMIN_H

#include <QSqlDatabase>
#include <QWidget>

#include <QAction>

namespace Ui
{
class Admin;
}

class Admin : public QWidget
{
    Q_OBJECT

public:
    explicit Admin(QWidget* parent = nullptr);
    ~Admin();
    void showStuInfo();
    //signals:
    //    void sendData(QString data1, QString data2);
private slots:
    void on_pushButtonSeek_clicked();

    void on_pushButton_clicked();

    void on_pushButtonModify_clicked();

    void on_pushButtonDel_clicked();
    //    void sendSlot();


    void on_tableWidget_customContextMenuRequested(const QPoint& pos);
    void slotActionModify();
    void slotActionRemove();

private:
    Ui::Admin* ui;
    QSqlDatabase m_db;
    QMenu* table_widget_menu;
};

#endif // ADMIN_H
